package zzzhc.image.ui;

import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.Window;

public class UIUtil {

	private UIUtil() {
	}

	public static void centerWindow(Window window) {
		Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
		window.setLocation((dim.width - window.getWidth()) / 2,
				(dim.height - window.getHeight()) / 2);
	}

}
